#ifndef FONTLOADER_H
#define FONTLOADER_H

#include <QObject>
#include <QGuiApplication>
#include <QClipboard>
#include <QFontDatabase>

class FontLoader : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString  Error MEMBER m_error)
    Q_PROPERTY(QString loadedFont MEMBER m_loadedFont)
public:
    explicit FontLoader(QObject *parent = nullptr);
    ~FontLoader();
    Q_INVOKABLE void toClipboard(QString );
    Q_INVOKABLE bool setFontFile(QString filePath);

signals:
    void fontChanged(QString newFont);
public slots:


private:
     QClipboard *m_clipboard;
     QString m_error;
     QString m_loadedFont;
};

#endif // FONTLOADER_H
